import chainlit as cl


def main():
    cl.echo("请选择一个选项：")
    option = cl.selectbox("选项", ["选项1", "选项2", "选项3"])
    cl.echo(f"您选择的选项是：{option}")
@cl.on_window_message
async def window_message(message: str):
    if message.startswith("Client: "):
        await cl.Message(content=f"Window message received: {message}").send()
        await cl.send_window_message(f"Server: Window message received: {message}")

@cl.on_message
async def main(message: cl.Message):
    print(message.content)
    # await cl.Message(content=f"cl.Message  你发送的消息是: {message.content}").send()
    await cl.send_window_message(f"send_window_message  你发送的消息是: {message.content}")
